$query_t = "select * , rand() as r from ipresente order by r limit 10" doesn't exist. Closest matches: